package com.yanqu.road.dao.dbV2.serializer;

import java.lang.reflect.Field;

public class DLong extends Serializer<Long>{

    @Override
    public Long deserialize(Object object, Field field) {
        if (object instanceof Long) {
            return (Long) object;
        }
        return this.defaultValue();
    }

    @Override
    public Object serialize(Long aLong) {
        return aLong;
    }

    @Override
    public String SqlType() {
        return "BIGINT(20)";
    }

    @Override
    public Long defaultValue() {
        return 0L;
    }
}
